package com.orion.config.part;

import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractNameValueGatewayFilterFactory;
import org.springframework.stereotype.Component;

/**
 * 自定义GatewayFilterFactory，绝大部分继承AbstractNameValueGatewayFilterFactory就行，name-Value参数
 * @author Administrator
 * @date 2021/10/28
 */
@Component
public class CustomGatewayFilterFactory extends AbstractNameValueGatewayFilterFactory{

    @Override
    public GatewayFilter apply(NameValueConfig config) {
        return new CustomGatewayFilter(config);
    }
}
